﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ILRuntimeProject
{
    public static class MyHotFixMgr
    {
        public static string GetVersionInfo()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("v0.0.1");
            sb.Append("\t 20210828");
            sb.Append("\t 啥玩意没有的测试版");
            return sb.ToString();
        }

        public static void StaticInit()
        {
            HotFixSetting.Init(); 
        }

        public static object StaticGetHotFixObj(string type)
        {
            Type objType = Type.GetType(type);

            if (objType == null || !objType.IsClass) return null;

            return Activator.CreateInstance(objType);
        }
    }
}
